/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.sistemas.sse.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy;

/**
 *
 * @author laptop-w8
 */
@Entity
@Table(name = "LCONTR")
@Proxy(lazy = false)
public class Contrato implements Serializable{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "CCONTR")
    private long id_contratacion;
    @Column(name = "FINI_CONTR")
    private Date finicioContrato;
    @Column(name = "FFIN_CONTR")
    private Date ffinContrato;
    @Column(name = "BEST_CONTR")
    private boolean bestado;
    @OneToOne
    @JoinColumn(name = "CPTLN", referencedColumnName = "CPTLN")
    private Postulacion postulacion;

    public long getId_contratacion() {
        return id_contratacion;
    }

    public void setId_contratacion(long id_contratacion) {
        this.id_contratacion = id_contratacion;
    }

    public Date getFinicioContrato() {
        return finicioContrato;
    }

    public void setFinicioContrato(Date finicioContrato) {
        this.finicioContrato = finicioContrato;
    }

    public Date getFfinContrato() {
        return ffinContrato;
    }

    public void setFfinContrato(Date ffinContrato) {
        this.ffinContrato = ffinContrato;
    }

    public boolean isBestado() {
        return bestado;
    }

    public void setBestado(boolean bestado) {
        this.bestado = bestado;
    }

    public Postulacion getPostulacion() {
        return postulacion;
    }

    public void setPostulacion(Postulacion postulacion) {
        this.postulacion = postulacion;
    }
    
}
